package de.koller.worlders.gameplay.inventory;

import de.koller.worlders.gameplay.items.Item;

public class InventoryEntity implements Comparable<InventoryEntity> {

	private final Item item;
	private int number = 0;

	public InventoryEntity( Item item ) {
		this.item = item;
	}

	@Override
	public int compareTo( InventoryEntity o ) {
		return item.getTitle().compareTo( o.item.getTitle() );
	}
	
	public int getNumber() {
		return number;
	}

	public void setNumber( int number ) {
		this.number = number;
	}

	public Item getItem() {
		return item;
	}

}
